package net.lainiao.zhihu.service;

import net.lainiao.zhihu.common.MyPage;
import net.lainiao.zhihu.dao.ZhihuwentiMapper;
import net.lainiao.zhihu.model.ZhihuwentiWithBLOBs;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2016/1/18.
 */
@Service
public class ZhihuwentiService {
    @Resource
    private ZhihuwentiMapper zhihuwentiMapper;
    public List<ZhihuwentiWithBLOBs> getListByhuatiIdPage(MyPage myPage) {
        return zhihuwentiMapper.getListByhuatiIdPage(myPage);
    }

    public ZhihuwentiWithBLOBs getwentiById(String wenti) {
            return zhihuwentiMapper.selectByPrimaryKey(wenti);
    }
}
